package entity;

import lombok.Data;

@Data  //返回请求结果：进行json的封装  R:Result
public class R<T> {

    private Integer code;
    private String msg;
    private T dat;

    public R() { }

    public R(Integer code, String msg, T dat) {
       this(code, msg);
        this.dat = dat;
    }

    public R(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
